<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
<script type="text/javascript" src="annotations.js" charset="utf-8"></script>
<script type="text/javascript" src="doc.js" charset="utf-8"></script>
<script>
                          
    function Human(){
        /*  @D-Human-
                type:"class" ,what:this is a class     ,
                extends:N/A ,
                implements:N/A ,
                parameters:firstname as String; lastName as String ,
                return: Human ,
                methods:{
                    toString(),
                    Human() constructor
                } ,
                properties:{
                    FirstName,
                    LastName
                } ,
                use:<code>mu(Human).New(firstName,LastName);
                alert('Human has been created');</code> ,
                remarks:this is a remark about
                how using human

            @D
         */

        /*  @@-FirstName-
                myType:TEXT,
                myDefaultValue:John
            @@ */
        this.FirstName;
        /*  @@-LastName-
                myType:TEXT,
                myDefaultValue:Doe
            @@ */
        this.LastName;

        /*@D-Human.toString()-
                type:method ,
                what:this is a class     ,
                return: string

        @D
         */

        this.toString = function(){
            return this.FirstName+" "+this.LastName;
        }
    }
    
    var h = new Human();

    console.log(Annotations(Human));
    
    h.FirstName = Annotations(Human)['FirstName']['myDefaultValue']; /*display John*/
    h.LastName = Annotations(Human).LastName.myDefaultValue; /*display Doe*/
    console.log(h.toString());  /*display John Doe*/

    console.log(doc(Human));

    
</script>
</head>

<body>

</body>

</html>